package com.ebs.md.fxmonitor.client.api;

import com.ebs.commons.comp.IParsedPayload;


/**
 * <p>Title: Netlink</p>
 * <p>THis class receives FIX messages from the client</p>
 *
 * <p>Copyright: Copyright (c) 2004</p>
 *
 * <p>Company: EBS</p> $Id: //depot/MarketData/fxmonitor/main/src/main/java/com/ebs/md/fxmonitor/client/api/ClientMessageListener.java#2 $ not attributable $Revision: #2 $ 1.0
 */
public interface ClientMessageListener {
    void onClientLogin(IParsedPayload message);
    void onClientSubscribe(IParsedPayload message);

    /**
     * CAlled when client logs out gracefully
     * @param reason String - reason for disconnect
     * @param gracefull boolean - true if a gracefull disconnect
     */
    void onClientLogout(String reason, boolean gracefull);
    void onClientConnected(String ip);
    void onClientDisconnected(String reason);
    void onClientException(Exception ex);
    /**
     * Called when everything is ready to receive messages
     */
    void onServerInitialized();
}
